FROM ubuntu:20.04
RUN sed -i 's/archive.ubuntu/mirrors.aliyun/g' /etc/apt/sources.list \
    && apt-get update && apt-get install -y openjdk-11-jdk libgl1-mesa-dev \
    && rm -rf /var/lib/apt/lists/* \
    && ln -snf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' > /etc/timezone
WORKDIR /workspace
add command-line-tools.tar.xz /opt
add EmptyProject.tar.xz	/usr/local/share
ENV PATH="/opt/command-line-tools/bin:/opt/command-line-tools/sdk/default/openharmony/toolchains:/opt/command-line-tools/tool/node/bin:${PATH}"

# 验证安装
#RUN node -v && npm -v && java -version
